home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
misc
/
emu
/
arosdev.lha
/
AROS
/
workbench
/
libs
/
icon
/
makefile
< prev
next >
Wrap
Makefile
|
1997-02-04
|
1KB
|
55 lines
# $Id: makefile,v 1.4 1997/02/04 17:23:50 digulla Exp $
TOP=../../..
USER_INCLUDES = -I..
include $(TOP)/config/make.cfg
OBJDIR=$(GENDIR)/workbench/libs/icon
DEPLIBS=$(LIBDIR)/libamiga.a $(LIBDIR)/libarosc.a $(LIBDIR)/libaros.a
LIBS=-L$(LIBDIR) -laros -lamiga -larosc
FILES = icon_init icon_functable basicfuncs diskobjio
FUNCTIONS = \
addfreelist \
bumprevision \
deletediskobject \
findtooltype \
freefreelist \
getdefdiskobject \
getdiskobject \
getdiskobjectnew \
matchtoolvalue \
putdefdiskobject
all: setup $(SLIBDIR)/icon.library
$(SLIBDIR)/icon.library: $(DEPLIBS) \
$(foreach f,$(FILES) $(FUNCTIONS),$(OBJDIR)/$(f).o)
$(CC) $(ILDFLAGS) $^ $(LIBS) -o $@
setup :
@if [ ! -d $(OBJDIR) ]; then $(MKDIR) $(OBJDIR) ; else true ; fi
@if [ ! -d $(SLIBDIR) ]; then $(MKDIR) $(SLIBDIR) ; else true ; fi
clean:
$(RM) $(OBJDIR) *.err
$(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
@if test ! -s $*.err; then rm $*.err ; else true ; fi
icon_functable.c : $(foreach f,$(FUNCTIONS),$(f).c) \
$(TOP)/scripts/makefunctable.awk
gawk -f $(TOP)/scripts/makefunctable.awk \
--assign lib=Icon \
$^
$(OBJDIR)/%.d: %.c
@if [ ! -d $(@D) ]; then $(MKDIR) $(@D) ; else true ; fi
$(MKDEPEND) -f- -p$(@D)/ -- $(CFLAGS) -- $^ > $@
ifneq ($(TARGET),clean)
include $(foreach f,$(FILES) $(FUNCTIONS),$(OBJDIR)/$(f).d)
endif